﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domain.Interface;
using Domain.Model;

namespace Domain
{
    public class ResourceComponent : BaseComponent, IResourceComponent
    {
        public void AddResource(Resource entity)
        {
            Context.Resources.Add(entity);
            Context.SaveChanges();
        }

        public void DeleteResource(Resource entity)
        {
        }

        public IEnumerable<Resource> GetResources()
        {
            return Context.Resources.ToList();
        }
    }
}
